1865, of unknown origin, perhaps in reference to Aleck Hoag, notorious pimp, thief, and confidence man in New York City in early 1840s [Barnhart]. See smart (adj.). Related: Smart-alecky.
small-time
small-town
smarm
smarmy
smart
smart aleck
smart money
smart-arse
smart-ass
smarten
smartly